package com.ddtech.framework.quartz.repository;

import com.ddtech.framework.quartz.model.SysQuartzJob;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author Apache License
 * @date 2019-01-07
 */
public interface QuartzJobRepository extends JpaRepository<SysQuartzJob,String>, JpaSpecificationExecutor {

    /**
     * 查询启用的任务
     * @return
     */
    List<SysQuartzJob> findByIsPauseIsFalse();
}
